# Replication Package:  
**Tamaki & Jung (2025). “The Non-linearity of Populist Attitudes and Political Ideology”**  
Republication files for *Political Science Research and Methods*

---

## Overview

This repository contains the full replication materials for Tamaki & Jung (2025), including all scripts, data files, and output necessary to reproduce the results reported in the main text and supplementary materials of the article.

---

### Directory Contents

* `README.md`: Replication instructions and metadata
* `df_final(11.24).RData`: Final analysis dataset
* `pop_supply.csv`: Country-level populist support labels
* `Tamaki and Jung - PSRM Code.R`: Main replication script
* `Tamaki and Jung - PSRM Code - Supplementary Materials.R`: Supplementary analysis and robustness checks
* `Tamaki_and_Jung_replication_log.txt`: R console log file
* `Tamaki_and_Jung_replication_Appendix_log.text`: R console log file (supplementary)

---

## Replication Instructions

### Step-by-Step

1. Open **R** (≥ 4.3.2) or **RStudio**.
2. Set your working directory to the folder containing the replication files.
3. Ensure the required packages are installed. You may use `pacman` for convenience:
   ```r
   if (!require("pacman")) install.packages("pacman")
   pacman::p_load(tidyverse, mgcv, sandwich, rio, stargazer, lavaan, ggeffects, lmtest)
   ```
4. Load the data file:
   ```r
   load("df_final(11.24).RData")
   ```
   
5. Run:
   * `Tamaki and Jung - PSRM Code.R` for the main results (Figures 1–5, Tables 1–3).
   * `Tamaki and Jung - PSRM Code - Supplementary Materials.R` for robustness checks, measurement models, and appendices (Appendix A–E).

---

## Software Information

* **R version:** 4.3.2 (2023-10-31)
* **Platform:** x86\_64-w64-mingw32 / Windows 11 x64 (build 26100)

### R Packages Used

* tidyverse (≥ 1.3.2)
* mgcv (≥ 1.8-42)
* sandwich (≥ 3.1-0)
* rio (≥ 0.5.29)
* stargazer (≥ 5.2.3)
* lavaan (≥ 0.6-15)
* ggeffects (≥ 1.2.3)
* lmtest (≥ 0.9-40)
* pacman (≥ 0.5.1)

---

## Hardware Information

* **Operating System:** Windows 11 Pro (64-bit)
* **CPU Architecture:** x86\_64
* **RAM:** 16 GB

---

## Notes

* This package is compliant with PSRM replication standards as of July 2025.
* Any questions regarding these materials can be directed to the corresponding author.

---

© 2025 Yujin Jung and Eduardo Tamaki. All rights reserved.





